package com.qf.erp_system_admin.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@AllArgsConstructor
@HeadRowHeight(20) // 指定列头行高
@ColumnWidth(20) // 指定列宽
public class Supplier {
    @ExcelIgnore
    private  int supId; //供应商编号

    @ExcelProperty(value = "供应商名称")
    private  String supGys; //供应商名称

    @ExcelProperty(value = "联系人")
    private  String supName;//联系人

    @ExcelProperty(value = "联系电话")
    private  int supPhone;//联系电话

    @ExcelProperty(value = "联系地址")
    private  String supHome;//联系地址

    @ExcelProperty(value = "供应商品")
    private  String supProduct;//供应商品

    @ExcelIgnore
    private  int attr1;
    @ExcelIgnore
    private  int attr2;
    @ExcelIgnore
    private  String attr3;
    @ExcelIgnore
    private  String attr4;

    @Override
    public String toString() {
        return "Supplier{" +
                "supId=" + supId +
                ", supGys='" + supGys + '\'' +
                ", supName='" + supName + '\'' +
                ", supPhone=" + supPhone +
                ", supHome='" + supHome + '\'' +
                ", supProduct='" + supProduct + '\'' +
                ", attr1=" + attr1 +
                ", attr2=" + attr2 +
                ", attr3='" + attr3 + '\'' +
                ", attr4='" + attr4 + '\'' +
                '}';
    }

    public int getSupId() {
        return supId;
    }

    public void setSupId(int supId) {
        this.supId = supId;
    }

    public String getSupGys() {
        return supGys;
    }

    public void setSupGys(String supGys) {
        this.supGys = supGys;
    }

    public String getSupName() {
        return supName;
    }

    public void setSupName(String supName) {
        this.supName = supName;
    }

    public int getSupPhone() {
        return supPhone;
    }

    public void setSupPhone(int supPhone) {
        this.supPhone = supPhone;
    }

    public String getSupHome() {
        return supHome;
    }

    public void setSupHome(String supHome) {
        this.supHome = supHome;
    }

    public String getSupProduct() {
        return supProduct;
    }

    public void setSupProduct(String supProduct) {
        this.supProduct = supProduct;
    }

    public int getAttr1() {
        return attr1;
    }

    public void setAttr1(int attr1) {
        this.attr1 = attr1;
    }

    public int getAttr2() {
        return attr2;
    }

    public void setAttr2(int attr2) {
        this.attr2 = attr2;
    }

    public String getAttr3() {
        return attr3;
    }

    public void setAttr3(String attr3) {
        this.attr3 = attr3;
    }

    public String getAttr4() {
        return attr4;
    }

    public void setAttr4(String attr4) {
        this.attr4 = attr4;
    }
}
